package com.ztesoft.web.filecommon.db.dao.mapper;

import com.ztesoft.web.filecommon.db.arg.FileObjServerRelArg;
import com.ztesoft.web.filecommon.db.po.FileObjServerRelPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface IFileObjServerRelMapper {
    
    List<Integer> countByArg(FileObjServerRelArg arg);

    List<FileObjServerRelPO> selectByArg(FileObjServerRelArg arg);

    FileObjServerRelPO selectByPrimaryKey(Integer id);
    
    List<FileObjServerRelPO> selectByObjId(Integer objId);

    List<FileObjServerRelPO> selectByArgAndPage(FileObjServerRelArg arg, RowBounds rowBound);

    int insert(FileObjServerRelPO record);

    int insertSelective(FileObjServerRelPO record);

    int insertBatch(@Param("list") List<FileObjServerRelPO> records);

    int updateByArgSelective(@Param("record") FileObjServerRelPO record,
            @Param("arg") FileObjServerRelArg arg);

    int updateByArg(@Param("record") FileObjServerRelPO record,
            @Param("arg") FileObjServerRelArg arg);

    int updateByPrimaryKeySelective(FileObjServerRelPO record);

    int updateByPrimaryKey(FileObjServerRelPO record);
    
    int deleteByArg(FileObjServerRelArg arg);
    
    int deleteByPrimaryKey(Integer id);
    
}